		// 立即购买
		async buyNow() {
			// 检查用户信息
			const userInfo = uni.getStorageSync('userInfo')
			if (!userInfo) {
				uni.showToast({
					title: '请先登录',
					icon: 'none'
				})
				setTimeout(() => {
					uni.navigateTo({
						url: '/pages/login/login'
					})
				}, 1500)
				return
			}

			// 获取用户列表
			const userList = uni.getStorageSync('userList') || []
			const userIndex = userList.findIndex(item => item.uid === JSON.parse(userInfo).uid)
			
			if (userIndex === -1) {
				uni.showToast({
					title: '用户信息不存在',
					icon: 'none'
				})
				return
			}

			// 检查余额
			const userBalance = parseFloat(userList[userIndex].balance)
			const totalPrice = parseFloat(this.product.price) * this.quantity
			
			if (userBalance < totalPrice) {
				uni.showModal({
					title: '余额不足',
					content: `您的余额为¥${userBalance}，需要支付¥${totalPrice}，是否前往充值？`,
					success: (res) => {
						if (res.confirm) {
							uni.navigateTo({
								url: '/pages/money/money'
							})
						}
					}
				})
				return
			}

			// 创建订单
			try {
				const now = new Date()
				const orderData = {
					id: now.getTime().toString(),
					items: [{
						productId: this.product.id,
						quantity: parseInt(this.quantity),
						price: parseFloat(this.product.price),
						name: this.product.name,
						image: this.product.image,
						totalPrice: parseFloat((this.product.price * this.quantity).toFixed(2))
					}],
					totalAmount: parseFloat((this.product.price * this.quantity).toFixed(2)),
					orderTime: now.toISOString(),
					status: 'paid',
					address: userList[userIndex].address || '',
					phone: userList[userIndex].phone || '',
					receiver: userList[userIndex].receiver || ''
				}

				console.log('订单数据:', orderData) // 调试日志

				// 更新用户余额
				userList[userIndex].balance = (userBalance - totalPrice).toFixed(2)
				
				// 添加订单到用户订单列表
				const orders = userList[userIndex].orders || []
				orders.unshift(orderData)
				userList[userIndex].orders = orders
				
				// 保存更新后的用户列表
				uni.setStorageSync('userList', userList)

				uni.showToast({
					title: '购买成功',
					icon: 'success'
				})

				// 延迟跳转到订单页面
				setTimeout(() => {
					uni.navigateTo({
						url: '/pages/order/order'
					})
				}, 1500)
			} catch (error) {
				console.error('创建订单失败:', error)
				uni.showToast({
					title: '创建订单失败，请稍后重试',
					icon: 'none'
				})
			}
		}, 